<?php

	include ('../Config/conn.php'); 

	$forma_troca = array();
	
	$result = $db->query("SELECT cd_forma_troca, ds_forma_troca FROM forma_troca",
						 PDO::FETCH_ASSOC);

	if ($result->rowCount() > 0) {
		while($resultado = $result->fetch()){
			$forma_troca[$resultado["cd_forma_troca"]] = $resultado["ds_forma_troca"];
		}
		$result->closeCursor();	
	}
			
	include ('../Config/destruct.php'); 
?>
